package com.summer.data.jql;

import com.summer.data.jql.behavior.TableAble;

import java.util.HashMap;
import java.util.Map;

/**
 * @author          ydfqy.com
 *      环境
 */
public class Context {

    private boolean isQuery = true;

    public boolean isQuery() {
        return isQuery;
    }

    protected Map<TableAble, String> aliasMap = new HashMap<>();

    public String getAlias(TableAble tableAble) {
        return aliasMap.get(tableAble);
    }

    public Context(boolean isQuery) {
        this.isQuery = isQuery;
    }
}
